package com.flyco.modules.fenxiao.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.flyco.modules.fenxiao.entity.DistAccount;
import com.flyco.modules.fenxiao.mapper.DistAccountMapper;
import com.flyco.modules.fenxiao.service.IDistAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 分销员帐号
 * @Author: flyco
 * @Date:   2020-07-07
 * @Version: V1.0
 */
@Service
@DS("fenxiao")
public class DistAccountServiceImpl extends ServiceImpl<DistAccountMapper, DistAccount> implements IDistAccountService {

    @Autowired
    private DistAccountMapper distAccountMapper;

    @Override
    public Integer saveDistAccountByAdmin(DistAccount distAccount) {
        return distAccountMapper.saveDistAccountByAdmin(distAccount);
    }

    @Override
    public Boolean modifyDistAccountByAdmin(DistAccount distAccount) {
        return distAccountMapper.modifyDistAccountByAdmin(distAccount);
    }

    @Override
    public DistAccount getDistAccountByAdmin(String id) {
        return distAccountMapper.getDistAccountByAdmin(id);
    }
}
